#include "stdafx.h"

Ogre::Real du2=0;
class PostProcessListener : public Ogre::CompositorInstance::Listener {
public:

	PostProcessListener(){
	}

	virtual void notifyMaterialSetup(Ogre::uint32 pass_id, Ogre::MaterialPtr &mat) {

	}

	virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr &mat) {

		if(pass_id==13)
		mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters()->setNamedConstant("den",du2);

		
	}

private:

	
};

PostProcessListener *postProcessListener;